<template>
	<view>
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" active-color='#f7c60a'></u-tabs>
		<page0 v-if="current===0"></page0>
		<page1 v-if="current===1"></page1>
		<page2 v-if="current===2"></page2>
		<page3 v-if="current===3"></page3>
	</view>
</template>

<script>
	import Page0 from "./page0/index.vue"
	import Page1 from "./page1/index.vue"
	import Page2 from "./page2/index.vue"
	import Page3 from "./page3/index.vue"

	export default {
		name: 'Oline',
		components: {
			Page0,
			Page1,
			Page2,
			Page3
		},
		data() {
			return {
				list: [{
					name: '中国->老挝(未验视)'
				}, {
					name: '中国->老挝(已验视)'
				}],
				// list: [{
				// 	name: '中->老(未验视)'
				// }, {
				// 	name: '中->老(已)'
				// }, {
				// 	name: '老->中(未)'
				// }, {
				// 	name: '老->中(已)'
				// }],
				current: 0
			}
		},
		methods: {
			change(index) {
				this.current = index
			}
		}
	}
</script>
